﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PBOffice.Models;
using PBOffice.DAL;

namespace PBOffice.BLL
{
    public class RoleInfoManager
    {
        public List<RoleInfo> GetAllRoleInfo()
        {
            return new RoleInfoService().GetAllRoleInfo();
        }
        public void DelteRoleInfo(int id)
        {
            new RoleInfoService().DelteRoleInfo(id);
        }
        public void AddRoleInfo(RoleInfo role)
        {
            new RoleInfoService().AddRoleInfo(role);
        }
        public void UpdateRoleInfo(RoleInfo role)
        {
            new RoleInfoService().UpdateRoleInfo(role);
        }
        public RoleInfo GetRoleInfoById(int id)
        {
            return new RoleInfoService().GetRoleInfoById(id);
        }
    }
}
